﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
using ZoneLinePacking.Enums;
using ZoneLinePacking.Models.Entity.Base;

namespace ZoneLinePacking.Models.Entity.Template {

    [Table(Name = "base_template_info")]
    public class TemplateEntity : EntityBase {

		private string _templateName;
		/// <summary>
		/// 模板名称
		/// </summary>
		public string TemplateName {
			get { return _templateName; }
			set { _templateName = value; base.RaisePropertyChanged(); }
		}

		private string _templatePath;
		/// <summary>
		/// 模板路径
		/// </summary>
		public string TemplatePath {
			get { return _templatePath; }
			set { _templatePath = value; base.RaisePropertyChanged(); }
		}


		private eTemplateType _templateType = eTemplateType.LabelCode;
        /// <summary>
        /// 模板类型
        /// </summary>
        [Column(MapType = typeof(int))]
        public eTemplateType TemplateType {
			get { return _templateType; }
			set { _templateType = value; }
		}


		private long _productID;
		/// <summary>
		/// 产品ID
		/// </summary>
        public long ProductID {
            get { return _productID; }
            set { _productID = value; base.RaisePropertyChanged(); }
        }
      
    }

}
